package main

import "fmt"

func main() {
	//& 取址符，内存地址
	//* 取值符，地址取值
	var age *int
	fmt.Println(&age) //0xc00000a028
	fmt.Println(age)  //没赋值，空指针 nil

	var i = 10
	age = &i
	fmt.Println(i)    //10
	fmt.Println(&i)   //0xc0000a6058
	fmt.Println(*&i)  //10
	fmt.Println(age)  //0xc0000a6058
	fmt.Println(*age) //10
}
